package br.com.array.android.ma.service;

/**
 * Created by leonardo.neves on 06/08/2014.
 */
public class ServiceNotificacaoImpl implements ServiceNotificacao{

    private QueryParam queryParam;

    public ServiceNotificacaoImpl() {
        this.queryParam = new QueryParam();
    }

    @Override
    public ServiceNotificacao titulo(String value) {
        this.queryParam.setTitulo(value);
        return this;
    }

    @Override
    public ServiceNotificacao descricao(String value) {
        this.queryParam.setDescricao(value);
        return this;
    }

    @Override
    public ServiceNotificacao data(String value) {
        this.queryParam.setData(value);
        return this;
    }

    @Override
    public void executar(ServiceNotificacaoListener listener) {
        AsyncTaskNotificacao task = new AsyncTaskNotificacao(listener);
        task.execute(this.queryParam);
    }
}
